# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.


class EDMTasks(models.Model):
    id = models.AutoField(primary_key=True)
    email = models.CharField(max_length=64, null=True, blank=True)
    subject = models.CharField(max_length=64, null=True, blank=True)
    content = models.TextField()
    batch_id = models.CharField(max_length=64, null=True, blank=True)
    datetime = models.DateTimeField(auto_now=True)
    result = models.CharField(max_length=32, null=True, blank=True)
    message_id = models.CharField(max_length=128, null=True, blank=True)

    class Meta:
        managed = True
        db_table = 'edm_tasks'


class EDMTasksCache(models.Model):
    id = models.AutoField(primary_key=True)
    email = models.CharField(max_length=64, null=True, blank=True)
    subject = models.CharField(max_length=64, null=True, blank=True)
    content = models.TextField()
    batch_id = models.CharField(max_length=64, null=True, blank=True)

    class Meta:
        managed = True
        db_table = 'edm_tasks_cache'